﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace WPFSample.CircleTheButtonsSample
{
    class CircleTheButtons : Window
    {
        public CircleTheButtons()
        {
            this.Title = "Circle the Buttons";

            RadialPanel pnl = new RadialPanel();
            pnl.ShowPieLines = true;
            pnl.Orientation = RadialPanelOrientation.ByWidth;
            this.Content = pnl;

            Random rand = new Random();
            for (int i = 0; i < 10; i++)
            {
                Button btn = new Button();
                btn.Content = "Button Number " + (i + 1);
                btn.FontSize += rand.Next(10);
                pnl.Children.Add(btn);
            }
        }
    }
}
